import styled from "styled-components";

import GedantuijianBg from '../../../../../assets/images/bg_detail.bb32b2d1.jpg'
import playBg from '../../../../../assets/images/play.png'
export const XingeshoufaBox = styled.div`
  position: relative;
  height: 532px;
  background: url(${GedantuijianBg}) 50% 0 repeat-x;

  overflow: hidden;
  .title{
    height: 114px;
    font-size: 24px;
    line-height: 114px;
    text-align: center;
    h2{
      letter-spacing: 20px;
    }
  }
  .fenlei{
    height: 50px;
    text-align: center;
    font-size: 15px;
    span{
      margin: 0 24px;
      
      &:hover{
        color: #31c27c;
        cursor: pointer;
      }
      &.active{
        color: #31c27c;
      }
    }
  }
  /* 覆盖 antd 样式 */
  .ant-carousel .slick-dots li.slick-active button{
    background-color: #3ac27c;

  }
  .ant-carousel .slick-dots li button{
    background-color:#999999 ;
  }
  .ant-carousel .slick-dots-bottom{
    bottom: -44px;
  }

  /* 上一个 下一个 */
  &:hover .pre{
      left:0;
  }
  &:hover .next{
      right:0;
  }
  .toggle{
    transition: all .4s;
    position: absolute;
    width: 79px;
    height: 108px;
    background: rgba(0,0,0,.05);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    &:hover{
      background: rgba(0,0,0,.1);
      cursor: pointer;
    }
  }
  .pre{
    
    left: -108px;
  }
  .next{
    right: -108px;
  }
  /* 覆盖  antd */
  .anticon{
    font-size: 50px;
    color: #3ac27c;
  }
  /* 轮播图的内容 */
  .banner_main{
    display: flex !important;
    flex-wrap: wrap;
    height: 333px;
    width: 100% ;
    /* background-color: red; */
    .banner_main_box{
      display: flex;
      align-items: center;
      width: 400px;
      height: 111px;
      color: #000000;
      font-size: 14px;
      /* background-color: blue; */
      border-bottom: 1px solid #dddddd;
      &:nth-child(n+6){
        border: none;
      }
      &:hover{
        cursor: pointer;
      }
      .banner_main_left{
        position: relative;
        width: 86px;
        height: 86px;
        overflow: hidden;
        &:hover{
          .img_mask{
            opacity: .2;
          }
          img{
            transform-origin: center;
            transform: scale(1.1);
          }
          .img_play{
            opacity: 1;
            background: url(${playBg}) center/50px no-repeat;
          }
        }
        img{
          width: 100%;
          height: 86px;
          display: inline-block;
          transition: all .4s;
        }
        /* 遮罩层 */
        .img_mask{
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: #000000;
          opacity: 0;
          transition: opacity .4s;
        }
        .img_play{
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%,-50%);
          width: 70px;
          height: 70px;
          background: url(${playBg}) center/30px no-repeat;
          opacity: 0;
          transition: all .4s;
        }
      }
    
      .banner_main_center{
        padding-left:10px;
        width: 245px;
        h3{
          margin-bottom: 5px;
        }
        span{
          color: #999999;

        }
      }
      /* .banner_main_right{
        margin-left: 13px;
        font-size: 14px;
        color: #999999;
      } */
    }
  }
`